package cn.itsource.controller;

import cn.itsource.domain.TLogininfo;
import cn.itsource.service.ILogininfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Effect:
 * date: 2022/1/13 19:38
 *
 * @author wangyu
 * @since JDK 1.8
 */
@RestController
@RequestMapping("/log")
public class LogininfoController {
    @Autowired
    private ILogininfoService logininfoService;


    @GetMapping("/findall")
    public List<TLogininfo> findAll(){
        return logininfoService.findAll();
    }

}
